import { config, request } from 'utils'

const { api } = config
const {
  birdCountUrl,
  birdGeneralUrl,
  pubdictValueListUrl
} = api

// POST，鸟类概览
export async function birdGeneral(data) {
  return request(birdGeneralUrl, {
    method: 'POST',
    data:data,
  });
}

// POST，鸟类统计
export async function birdCount(data) {
  return request(birdCountUrl, {
    method: 'POST',
    data:data,
  });
}

// POST，鸟类名称查询
export async function birdNamesQuery(params) {
  return request(pubdictValueListUrl, {
    method: 'POST',
    data: {
      "dictKey":"bird_type"
    },
  });
}
